GUI Help > Other > getTextWidth

getTextWidth
int width=getTextWidth(handle gadget, str text)

Description:
Retrieves the width in pixels required to display the specified text using the specified gadget's font.
This is normally used with drawText and canvas gadgets.

Return Value:
See Above

Parameters:
gadget Handle to a gadget
text Text which you wish to find the width of.
Remarks:


See Also:


Example:
(Note: You will need to include the GUI constants file for this example to work)